checkout: Use fd-relative open of newly created directory
authorColin Walters <walters@verbum.org>
Thu, 27 Feb 2014 16:49:49 +0000 (11:49 -0500)
committerColin Walters <walters@verbum.org>
Thu, 27 Feb 2014 16:49:49 +0000 (11:49 -0500)
We were walking the full path again on our directories, no need to do
that.

src/libgsystem
src/libostree/ostree-repo-checkout.c

index 31cd0b96bba5ccf391f4c4f5d94cddce44c65793..7a2499708b6aa0be5a67e4a75de66fb9c18516af 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 31cd0b96bba5ccf391f4c4f5d94cddce44c65793
+Subproject commit 7a2499708b6aa0be5a67e4a75de66fb9c18516af
index a2a8b525390aed19583bb16c15883f902e5ff688..e96598072679f3cd1389410a8942bcb5031ae414 100644 (file)
@@ -568,8 +568,9 @@ checkout_tree_at (OstreeRepo                        *self,
         }
     }
 
-  if (!gs_file_open_dir_fd (destination, &destination_dfd,
-                            cancellable, error))
+  if (!gs_file_open_dir_fd_at (destination_parent_fd, destination_name,
+                               &destination_dfd,
+                               cancellable, error))
     goto out;
 
   /* Set the xattrs now, so any derived labeling works */